#ifndef CINPUTCLASS_H
#define CINPUTCLASS_H

class CInputClass
{
	IDirectInput8* m_pDirectInput;
	IDirectInputDevice8* m_pKeyboard;
	IDirectInputDevice8* m_pMouse;
	unsigned char m_cKeyboardState[256];
	DIMOUSESTATE m_tMouseState;
	int m_nScreenWidth;
	int m_nScreenHeight;
	int m_nMouseXPos;
	int m_nMouseYPos;

	bool ReadKeyboard();
	bool ReadMouse();
	void ProcessInput();

public:
	CInputClass(void);
	CInputClass(const CInputClass&);
	~CInputClass(void);

	bool Initialize(HINSTANCE hInstance, HWND hWnd, int nScreenWidth, int nScreenHeight);
	void ShutDown();
	bool Frame();

	bool IsEscapePressed();
	void GetMouseLocation(int& nXPos, int& nYPos);

	bool IsLeftArrowPressed();
	bool IsRightArrowPressed();
};

#endif